#!/usr/bin/env bash

echo "OpenCV_VERSION=3.4.5"
echo "OpenCV_VERSION_MAJOR=3"
echo "OpenCV_VERSION_MINOR=4"
echo "OpenCV_VERSION_PATCH=5"
echo "OpenCV_VERSION_STATUS="


contains() {
    [ `echo $1 | grep -c "$2"` -gt 0 ]
}

if contains "/usr/local/include;/usr/local/include/opencv" "/ros/"; then
    ROS_VERSION=$(rosversion -d)
    echo "OpenCV_VERSION=ros-$ROS_VERSION"
fi

exit 0
